<include file="Public/head" />

</head>
<include file="Public/common_header" />
<div class="mian">
    <include file="Public/sidebar" menu='cxtj.bzjcz' />
    <div class="mianR">
        <div class="yuyue">
            <ul>
                <li onclick="window.location.href='/Bail/offline_logs'" >线下</li>
                <li onclick="window.location.href='/Bail/third_party?t=2'" class="yuCurrent">拉卡拉</li>
                <li onclick="window.location.href='/Bail/third_party?t=1'" >支付宝</li>
            </ul>
            <input type="hidden" name="status" value="0">
        </div>
        <div class="listBox">
            <div class="yuList">
                <div class="offline">
                    <ul class="clearfix">
                        <form action="/Bail/third_party?t=2" method="get">
                            <input type="hidden" name="t" value="{$params.recharge_method}">
                            <!--<li>-->
                                <!--<select id="bc_id" name="bc_id" class="tracking_list1" style="color:#7f7f7f">-->
                                    <!--<?php if(count($bc_list)>1):?>-->
                                      <!--<option value="-1">请选择分公司</option>-->
                                    <!--<?php endif;?>-->
                                    <!--<?php if($branch_id==1):?>-->
                                      <!--<option value="0">总部</option>-->
                                    <!--<?php endif;?>-->
                                    <!--<foreach name="bc_list" item="vo" key="k">-->
                                        <!--<option value="{$k}" >{$vo}</option>-->
                                    <!--</foreach>-->
                                <!--</select>-->
                            <!--</li>-->
                            <!--<script>$("#bc_id").val("<?php echo $params['bc_id'];?>")</script>-->
                            <li><input type="text" name="dealer_id" placeholder="车商ID" value="{$params.dealer_id}"/></li>
                            <li><input type="text" name="real_name" placeholder="联系人" value="{$params.real_name}"/></li>
                            <li><input type="text" name="mobile" placeholder="联系电话" value="{$params.mobile}"/></li>
                            <li><input type="text" name="order_no" placeholder="商户订单号" value="{$params.order_no}"/></li>
                            <li><input type="text" name="start_time" placeholder="交易开始时间" value="{$params.start_time}" class="dealOrigination" id="demoText9" /></li>
                            <li><input type="text" name="end_time" placeholder="交易结束时间" value="{$params.end_time}" class="dealOrigination" id="demoText10" /></li>
                            <li class="screenBtn" style="padding-top: 15px; padding-left: 10px; "><input type="submit" value="筛选" /></li>
                        </form>
                    </ul>
                </div>
                <div class="totalConter"><i>合计：</i>记录<b id="fewPens1"></b>笔订单金额<b id="recharge1"></b>元<em>手续费</em><b id="orderFee"></b>元</div>
                <table class="table table-bordered">
                    <thead>
                    <tr>
                        <th width="10%">车商ID</th>
                        <th width="12%">联系人</th>
                        <th width="12%">联系电话</th>
                        <th width="7%">订单金额</th>
                        <th width="6%">手续费</th>
                        <th >商户订单号</th>
                        <th width="15%">拉卡拉订单号</th>
                        <!--<th width="13%">分公司</th>-->
                        <th width="15%">交易时间</th>
                    </tr>
                    </thead>
                    <tbody>
                    <foreach name="list" item="item">
                        <tr>
                            <td>{$item.dealer_id}</td>
                            <td>{$item.contact_person}</td>
                            <td>{$item.contact_mobile}</td>
                            <td class="orderMoney">{$item.occur_money}</td>
                            <td class="orderFee">{$item.order_fee}</td>
                            <td>{$item.order_no}</td>
                            <td>{$item.transaction_id}</td>
                            <!--<td><?php echo $item['depart_id']==0 ? "总部" : $item["branch_name"] ;?></td>-->
                            <td>{$item.deal_time}</td>
                        </tr>
                    </foreach>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="pageFaye">{$page}</div>
    </div>
</div>
<div class="clear"></div>
<script type="text/javascript">
    $(document).ready(function() {
        /*拉卡拉合计*/
        $("#fewPens1").html($(".table-bordered").eq(0).find("tbody tr").length)
        var money1=0;
        var amount1=$(".table-bordered tbody .orderMoney");
        for(var i=0;i<amount1.length;i++){
            money1+=parseFloat($(amount1).eq(i).html());
        }

        $("#recharge1").html(money1);

        var money2=0;
        var amount2=$(".table-bordered tbody .orderFee");
        for(var i=0;i<amount2.length;i++){
            money2+=parseFloat($(amount2).eq(i).html());
        }
        $("#orderFee").html(money2);
    });

</script>
<include file="Public/foot" />